<template>

	<view class="content">
		<!-- 头部 -->
		<view class="top">
			<view class="location">
				<text class="iconfont icon-wxbdingwei"></text>
				<text>{{addres}}</text>
			</view>
			<view class="search">
				<text class="iconfont icon-sousuo "></text>
				<text>请输入关键字</text>
			</view>
			<view class="weather">
				<text class="iconfont icon-tianqi"></text>
				<text>5~14℃</text>
			</view>
		</view>
		<view class="title">
			<text>莱社区  智生活</text>
		</view>
		<!-- 金刚区 -->
		<view class="home_menu">
			<view class="menu_row">
				<view class="menu_item">
					<text class="iconfont icon-icon02"></text>
					<text>社区活动</text>
				</view>
				<view class="menu_item">
					<text class="iconfont icon-tongxunlutianchong"></text>
					<text>百姓通讯录</text>
				</view>
				<view class="menu_item">
					<text class="iconfont icon-gongjiao"></text>
					<text>实时公交</text>
				</view>
				<view class="menu_item">
					<text class="iconfont icon-daohang-wuyeguanli"></text>
					<text>物业管理</text>
				</view>
				<view class="menu_item">
					<text class="iconfont icon-wuyebaoxiu"></text>
					<text>物业报修</text>
				</view>
				<view class="menu_item">
					<text class="iconfont icon-wuyejiaofei"></text>
					<text>物业缴费</text>
				</view>
				<view class="menu_item">
					<text class="iconfont icon-yundongbisai"></text>
					<text>社区运动</text>
				</view>
				<view class="menu_item">
					<text class="iconfont icon-bingdu"></text>
					<text>疫情防控</text>
				</view>
				<view class="menu_item">
					<text class="iconfont icon-quanbufenlei"></text>
					<text>全部</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				addres: '请选择'
			}
		},
		onLoad() {
			let token = uni.getStorageSync('token')
			console.log(token)
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.content {
		padding-top: 18rpx;
		background-color: #3DA7FB;
		.title{
			font-family:'仓耳渔阳体';
			text-align: center;
			padding: 100rpx;
			padding-top: 40rpx;
			color: #fff;
			font-size: 36px;
			
		}
	}

	.top {
		box-sizing: border-box;
		padding: 18rpx 0;
		color: #fff;
		display: flex;
		justify-content: space-around;
		align-items: center;
		font-size: 14px;

		.iconfont {
			font-size: 18px;
		}

		.location {
			text-align: center;

			text:nth-child(2) {
				margin-left: 10rpx;
			}
		}

		.search {
			background-color: #fff;
			width: 50%;
			// border: 1px solid #ccc;
			padding: 10rpx 18rpx;
			border-radius: 40rpx;

			.iconfont {
				color: rgb(61, 167, 251);
			}

			text:nth-child(2) {
				color: #ccc;
				margin-left: 10rpx;
				font-size: 14px;
			}
		}

		.weather {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			font-size: 14px;

			text:nth-child(2) {
				font-size: 12px;
			}
		}
	}

	.home_menu {
		background-color: #fff;
		padding: 20rpx;
		box-sizing: border-box;

		.menu_row{
			background-color: #fff;
			margin-top: -90rpx;
			box-sizing: border-box;
			padding: 20rpx;
			border-radius: 36rpx;
			width: 100%;
			display: flex;
			justify-content: space-around;
			align-items: center;
			flex-wrap: wrap;
			.menu_item {
				margin-bottom: 10rpx;
				width: 28%;
				display: inline-flex;
				flex-direction: column;
				align-items: center;
			
				text:nth-child(2) {
					line-height: 2;
					font-size: 14px;
				}
			
				.iconfont {
					color: #3DA7FB;
					font-size: 38px;
				}
			}
		}
	}
</style>
